## This is the canonical hash digest of the files on the ftp server.  It will be pulled as $REMOTEHASHFILE 
## and updated when there is a commit
CANNONICALHASHFILE='canonical_hashes'
CHF=$CANNONICALHASHFILE
NEW_CONNONICALHASHFILE='new_cannonical_hash_file'
NCHF=$NEW_CONNONICALHASHFILE;
## This file defines values that will be used else where in the program.
NEWESTHASHFILE='most_recent_local_hashes'
NHF=$NEWESTHASHFILE
# this is the local copy of the cannonical hashes
REMOTEHASHFILE='remote_hashes'
RHF=$REMOTEHASHFILE;

METADATA_DIR=$(echo "$FTPUSER:$REMOTEDIR:$REMOTEDIR:$FTPHOSTNAME:$SALT" | sha256sum | sed 's/...$//g');
cd "$LOCALDIR"
if [ ! -e $METADATA_DIR ] ; then
    echo 'METADATA_DIR does not exists';
    mkdir $LOCALDIR/$METADATA_DIR;
    echo 'made metadata directory successfully';
fi
ACTIONLIST='action_list'

#Now state files
FILES_THAT_ARE_ONLY_LOCAL='local_files_that_are_not_on_server';
FTAOL=$FILES_THAT_ARE_ONLY_LOCAL;
FILES_THAT_ARE_REMOTE_ONLY='local_files_that_are_only_on_server';
FTARO=$FILES_THAT_ARE_REMOTE_ONLY;
FILES_THAT_DIFFER_LOCALLY='files_that_differ_locally'
FTDL=$FILES_THAT_DIFFER_LOCALLY
FILES_THAT_DIFFER_REMOTELY='files_that_differ_remotely'
FTDR=$FILES_THAT_DIFFER_REMOTELY
UNION='union'
INTER='intersection'
#this is the files that are different on the remote set from the local set
COMPLIMENT_REMOTE='compliment_remote'
COMPLIMENT_REMOTE_FILES='compliment_remote_file_names'
#and vice versa, different locally from remote set
COMPLIMENT_LOCAL='compliment_local'; #this will be used to make a list of files to be uploaded
COMPLIMENT_LOCAL_FILES='compliment_local_file_names'
SYMETRIC_DIFFERENCE="symmetric_difference"  # all set members that do not overlap with the compliment sets of the hashed local and remote
